import request from '@/utils/request'

// 查询核酸预约检测列表
export function listVisits(query) {
  return request({
    url: '/system/visits/list',
    method: 'get',
    params: query
  })
}

// 查询核酸预约检测详细
export function getVisits(id) {
  return request({
    url: '/system/visits/' + id,
    method: 'get'
  })
}

// 新增核酸预约检测
export function addVisits(data) {
  return request({
    url: '/system/visits',
    method: 'post',
    data: data
  })
}

// 修改核酸预约检测
export function updateVisits(data) {
  return request({
    url: '/system/visits',
    method: 'put',
    data: data
  })
}

// 删除核酸预约检测
export function delVisits(id) {
  return request({
    url: '/system/visits/' + id,
    method: 'delete'
  })
}
